package com.kunkun.auth.domain.convert;

import com.kunkun.auth.domain.bo.AuthPermissionBO;
import com.kunkun.auth.domain.bo.AuthRolePermissionBO;
import com.kunkun.auth.infra.basic.entity.AuthPermission;
import com.kunkun.auth.infra.basic.entity.AuthRolePermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户dto转换器
 *
 * @author: ChickenWing
 * @date: 2023/10/8
 */
@Mapper
public interface AuthRolePermissionBOConverter {

    AuthRolePermissionBOConverter INSTANCE = Mappers.getMapper(AuthRolePermissionBOConverter.class);

    AuthRolePermission convertBOToEntity(AuthRolePermissionBO authRolePermissionBO);

    AuthRolePermissionBO convertEntityToBO(AuthRolePermission authRolePermission);

    List<AuthRolePermission> convertBOToEntity(List<AuthRolePermissionBO> authRolePermissionBOS);


}
